
const Token = 'heima-toutiao-token';

//  存
const setToken = obj => {
    localStorage.setItem(Token,JSON.stringify(obj))
}

// 取
const getToken = () => {
    return JSON.parse(localStorage.getItem(Token))
}

// 删
const removeToken = () => {
     localStorage.removeItem(Token)
}
 

export {setToken, getToken, removeToken}